<title>API Settings</title>
<h2>API Settings</h2>
<script>
    $("ul li").each(function() {
        if ($(this).attr("key") == "adminsettings") {
            $(this).addClass("active");
        }
    });
</script>
<div class="row-fluid">
    <div class="well">
        <table class="table">
            <thead>
                <tr>
                    <th>#</th>
                    <th>API Name</th>
                    <th>Server Path</th>
                    <th>API Key</th>
                    <th>API Secret</th>
                    <th><a class="btn btn-mini btn-success" href="/admin/api/add" ><i class="icon-white icon-plus-sign"></i> Add New Api</a></th>
                </tr>
            </thead>
            <tbody>
                <?php
                $localvar = 1;
                foreach ($this->allApi as $value) : ?>
                <tr>
                    <td><?=$localvar++;?></td>
                    <td><?=$value->name;?></td>
                    <td><?=$value->server_path;?></td>
                    <td><?=$value->api_key;?></td>
                    <td><?=$value->api_secret;?></td>
                    <td><a href="<?=$this->url(array('id'=>$value->sr),'adminapiupdate');?>" class="btn btn-mini"><i class="icon-pencil"></i> Edit</a></td>
                </tr>
                <?php endforeach; ?>
            </tbody>
        </table>
    </div>
</div>